package com.cirkana.viewer.profile;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import com.cirkana.serial.SerializablePassData;

public class ProfileCredential extends SerializablePassData {

	private String user;
	private String password;

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public ProfileCredential() {
		super();
	}
	
	@Override
	public void serialize(DataOutputStream out) throws IOException {
		serializeString(this.user, out);
		serializeString(this.password, out);
	}

	@Override
	public void deserialize(DataInputStream in) throws IOException {
		this.user = deserializeString(in);
		this.password = deserializeString(in);
	}

}
